package com.jh.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

public class King implements Serializable{
 
	private String name;
	private Double weight;
	private Queen q;
	private List<Wife> wifeList;
	private String hobbies[];
	private Map<String,String> map;
	
	public King(String name, Double weight, Queen q, List<Wife> wifeList, String[] hobbies, Map<String, String> map) {
		this.name = name;
		this.weight = weight;
		this.q = q;
		this.wifeList = wifeList;
		this.hobbies = hobbies;
		this.map = map;
	}
	
	public King() {
		
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getWeight() {
		return weight;
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public Queen getQ() {
		return q;
	}
	public void setQ(Queen q) {
		this.q = q;
	}
	public List<Wife> getWifeList() {
		return wifeList;
	}
	public void setWifeList(List<Wife> wifeList) {
		this.wifeList = wifeList;
	}
	public String[] getHobbies() {
		return hobbies;
	}
	public void setHobbies(String[] hobbies) {
		this.hobbies = hobbies;
	}
	public Map<String, String> getMap() {
		return map;
	}
	public void setMap(Map<String, String> map) {
		this.map = map;
	}
	@Override
	public String toString() {
		return "King [name=" + name + ", weight=" + weight + ", q=" + q + ", wifeList=" + wifeList + ", hobbies="
				+ Arrays.toString(hobbies) + ", map=" + map + "]";
	}
	
}
